package calculatePlus;

import javax.swing.*;
import java.awt.*;

public class Prompt extends JDialog {

    public Prompt() {
        this.setVisible(true);

        this.setSize(300, 150);

        int x = (int) ((int)Toolkit.getDefaultToolkit().getScreenSize().getWidth() / 2 - this.getSize().getWidth() / 2);
        int y = (int) ((int)Toolkit.getDefaultToolkit().getScreenSize().getHeight() / 2 - this.getSize().getHeight() / 2);

        this.setLocation(x, y);

        Container container = this.getContentPane();

        JLabel label = new JLabel("提示：该功能还未实现！");

        label.setHorizontalAlignment(SwingConstants.CENTER);
        container.add(label);
    }

}
